<html>
<head><meta charset="utf-8"><title>Speeding up Magit on rust-lang/rust repo · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html">Speeding up Magit on rust-lang/rust repo</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205725038"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205725038" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205725038">(Aug 02 2020 at 12:12)</a>:</h4>
<p>Magit is somewhat slow on rust-lang rust repo. Ie, after hitting <code>C-c C-c</code> in the commit dialog, I see "fnished!" in the minibufer immediatelly, but it takes couple of seconds for the status buffer to clear the list of staged files. </p>
<p>Is there some quick tips like <code>(set magit-go-faster 't)</code> which help here? Or have anyone done investigation already and can confirm that no such tips could exist?</p>



<a name="205725327"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205725327" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205725327">(Aug 02 2020 at 12:21)</a>:</h4>
<p>I haven't used magit but git is also slow for me in the rust repo. Normally I use things like <code>git status .</code> which help but it's still slow when I forget.</p>



<a name="205725500"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205725500" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205725500">(Aug 02 2020 at 12:26)</a>:</h4>
<p>Have you set <code>git config feature.manyFiles true</code>? it is available since git v2.25 IIRC.</p>



<a name="205725826"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205725826" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205725826">(Aug 02 2020 at 12:35)</a>:</h4>
<p>Oh, it is since git v2.24: <a href="https://github.blog/2019-11-03-highlights-from-git-2-24/#feature-macros">https://github.blog/2019-11-03-highlights-from-git-2-24/#feature-macros</a></p>



<a name="205726029"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205726029" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205726029">(Aug 02 2020 at 12:41)</a>:</h4>
<p>debian why do you make me do these things <span aria-label="cry" class="emoji emoji-1f622" role="img" title="cry">:cry:</span> </p>
<div class="codehilite"><pre><span></span><code>$ git --version
git version 2.20.1
$ sudo apt update &amp;&amp; apt list --upgradable | grep git
# no output
$ apt-cache policy git
git:
  Installed: 1:2.20.1-2+deb10u3
  Candidate: 1:2.20.1-2+deb10u3
  Version table:
     1:2.27.0-1~bpo10+1 100
        100 http://deb.debian.org/debian buster-backports/main amd64 Packages
 *** 1:2.20.1-2+deb10u3 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
$ sudo apt install git=1:2.27.0-1~bpo10+1
The following packages have unmet dependencies:
 git : Depends: git-man (&gt; 1:2.27.0) but 1:2.20.1-2+deb10u3 is to be installed
$ sudo apt install git-man=1:2.27.0-1~bpo10+1
The following packages will be REMOVED:
  git
The following packages will be upgraded:
  git-man
$ sudo apt install git=1:2.27.0-1~bpo10+1
Setting up git (1:2.27.0-1~bpo10+1) ...
$ git --version
git version 2.27.0
</code></pre></div>



<a name="205726093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205726093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205726093">(Aug 02 2020 at 12:43)</a>:</h4>
<p><span class="user-mention" data-user-id="209117">@lzutao</span> wow that made a big difference though</p>
<div class="codehilite"><pre><span></span><code>$ touch src/librustdoc/core.rs
$ time git status &gt;/dev/null
real    0m0.230s
user    0m0.142s
sys 0m0.230s
$ git config --global feature.manyFiles true
$ time git status
real    0m0.326s
user    0m0.198s
sys 0m0.240s
$ touch src/librustdoc/core.rs
$ time git status
real    0m0.109s
user    0m0.063s
sys 0m0.190s
</code></pre></div>



<a name="205726836"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205726836" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205726836">(Aug 02 2020 at 13:05)</a>:</h4>
<p>I wouldn't set it global though. Because if it could be, git has set it to be the default.</p>



<a name="205726950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205726950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205726950">(Aug 02 2020 at 13:08)</a>:</h4>
<p>right, I want it for other big repos</p>



<a name="205727154"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205727154" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205727154">(Aug 02 2020 at 13:14)</a>:</h4>
<p>the one you talked about few days ago in discord? git-lfs may help it.</p>



<a name="205727289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205727289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205727289">(Aug 02 2020 at 13:19)</a>:</h4>
<p>git-lfs is complicated though <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="205727477"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205727477" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205727477">(Aug 02 2020 at 13:24)</a>:</h4>
<p>here the TLDR: <a href="https://github.com/tldr-pages/tldr/blob/master/pages/common/git-lfs.md">https://github.com/tldr-pages/tldr/blob/master/pages/common/git-lfs.md</a></p>



<a name="205731251"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205731251" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205731251">(Aug 02 2020 at 15:12)</a>:</h4>
<p><span class="user-mention silent" data-user-id="209117">lzutao</span> <a href="#narrow/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo/near/205726836">said</a>:</p>
<blockquote>
<p>I wouldn't set it global though. Because if it could be, git has set it to be the default.</p>
</blockquote>
<p>It's because it requires working mtime.</p>



<a name="205732197"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205732197" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205732197">(Aug 02 2020 at 15:36)</a>:</h4>
<p>One of the broken platforms is (who would have guessed...) Windows: <a href="https://github.com/microsoft/scalar/pull/364">https://github.com/microsoft/scalar/pull/364</a></p>



<a name="205805651"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205805651" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205805651">(Aug 03 2020 at 15:09)</a>:</h4>
<p>Thank you. Does it mean that in Windows manyFiles option is limited / useless ?</p>



<a name="205806749"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Speeding%20up%20Magit%20on%20rust-lang/rust%20repo/near/205806749" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Speeding.20up.20Magit.20on.20rust-lang.2Frust.20repo.html#205806749">(Aug 03 2020 at 15:17)</a>:</h4>
<p>Even worse. It breaks things...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>